import VueRouter from 'vue-router'
import HomeContainer from './components/tabbar/HomeContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue'
import NewList from './components/news/NewList.vue'
import NewsInfo from './components/news/NewsInfo.vue'
import Photolist from './components/photo/Photolist.vue'

var router = new VueRouter({
	routes:[
		{ path:'/home',component:HomeContainer},
		{ path:'/member',component:MemberContainer},
		{ path:'/shopcar',component:ShopcarContainer},
		{ path:'/search',component:SearchContainer},
		{ path:'/home/newlist',component:NewList},    //这个是新闻列表资讯
		{ path:'/home/newsinfo/:id',component:NewsInfo} ,//使用id作为动态路由
		{ path:'/home/photo',component:Photolist} //图片分享
	],
	linkActiveClass:'mui-active' //覆盖默认的路由高亮的类.默认的类叫做router-link-active
})

export default router